home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 19 / Mac Magazin and MacEasy Magazine CD - Issue 19.iso / Online / HttpServerƒ / •HTTP Server / TGMT.h < prev    next >
Text File  |  1996-01-03  |  981b  |  38 lines

  1. //    TGmt.h - G M Time class object
  2. // 
  3. // Apple Macintosh Developer Technical Support
  4. // Written by:  Vinne Moscaritolo
  5. //
  6. //  Copyright (work in progress)  Apple Computer, Inc All rights reserved.
  7. //
  8. // You may incorporate this sample code into your applications without
  9. // restriction, though the sample code has been provided "AS IS" and the
  10. // responsibility for its operation is 100% yours.  However, what you are
  11. // not permitted to do is to redistribute the source as "DSC Sample Code"
  12. // after having made changes. If you're going to re-distribute the source,
  13. // we require that you make it clear in the source that the code was
  14. // descended from Apple Sample Code, but that you've made changes.
  15. // 
  16.  
  17. #ifndef _H_TGMT
  18. #define _H_TGMT
  19.  
  20. #include <iostream.h>
  21.  
  22. class TGmt
  23.  {
  24.     friend ostream &operator<< (ostream&, const TGmt&);
  25.     enum {kUndefined = 0};    
  26.  
  27. public:
  28.     TGmt() : fTime(kUndefined) {};
  29.  
  30.     void Now();
  31.     unsigned long Elapsed();
  32.     
  33. private:
  34.     unsigned long    fTime;
  35. };
  36.  
  37. #endif
  38.